import pandas as pd

# 读取原始 CSV 文件
df = pd.read_csv(r'D:\file\postgrad\experiment\bird_ava_dataset\annotations\ava_train_v2.2.csv', header=None)

# 复制前七列
new_df = df.iloc[:, :7].copy()

# 将第八列填充为 0.98
new_df[7] = 0.98

# 保存新的 CSV 文件
new_df.to_csv(r'D:\file\postgrad\experiment\bird_ava_dataset\annotations\ava_detection_train_boxes_and_labels.csv', index=False, header=False)
